/**
 *
 * @author Anthony Straetman
 *
 */

	window.onload = function() {
		// Set focus on email field
		document.getElementById('email').focus();
		
		// Formchecking
		document.forms[0].onsubmit = function() {
			var formValid = (document.getElementById('email').value != '' && document.getElementById('password').value);
			
			if(!formValid) {
				document.getElementById('jsErrors').style.visibility = "visible";
			}
			
			return formValid;
		}
	}
